CREATE TABLE [dbo].[DefinePaymentTypeDetail_Log](
	[DetailID_log] [bigint] NOT NULL,
	[DetailID] [bigint] NOT NULL,
	[ReceiptID] [bigint] NOT NULL,
	[ReceiptDetailID] [bigint] NOT NULL,
	[ReceiptNo] [varchar](50) NOT NULL,
	[InvoiceID] [bigint] NOT NULL,
	[InvoiceNo] [varchar](50) NOT NULL,
	[AddCodeID] [bigint] NOT NULL,
	[Code] [varchar](50) NOT NULL,
	[Sender] [nvarchar](50) NOT NULL,
	[Receiver] [nvarchar](50) NOT NULL,
	[NRC] [nvarchar](50) NULL,
	[Address] [nvarchar](2000) NOT NULL,
	[CurrencyID] [bigint] NOT NULL,
	[TypeID] [bigint] NULL,
	[TypeCode] [nvarchar](50) NULL,
	[ExtraFees] [decimal](18, 4) NULL,
	[Amount] [decimal](18, 4) NOT NULL,
	[AgentID] [bigint] NULL,
	[AgentCode] [varchar](50) NULL,
	[Slip_No] [nvarchar](50) NULL,
	[CreatedDate] [datetime] NOT NULL,
	[CreatedBy] [bigint] NOT NULL,
	[ModifiedDate] [datetime] NULL,
	[ModifiedBy] [bigint] NULL,
	[PaidAmount] [decimal](18, 4) NULL,
	[ReturnStatus] [tinyint] NULL,
	[TranStatus] [tinyint] NOT NULL,
	[log_sysDate] [datetime] NOT NULL,
	[log_userid] [bigint] NOT NULL,
	[log_status] [tinyint] NOT NULL
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO


